<?php
/**
 * 单点登录入口
 *
 * @author  peng49 <a1215517@sohu.com>
 * @date    2020/8/19 13:03
 */


session_start();

$url = $_POST['redirect'];

$username = $_POST['username'];
//登录成功

$_SESSION['username'] = $username;

header("Location:{$url}?token={$username}");
exit;




